package cn.elwy.rcp.kit.user;

import cn.elwy.common.jdbc.dao.BaseDaoImpl;
import cn.elwy.osgi.config.model.DeployOperation;

public class UserDaoImpl extends BaseDaoImpl implements UserDao {

  @Override
  public void query() {
    jdbcSupport.query("select * from T_DEPLOY_OPERATION t", DeployOperation.class);
  }

  @Override
  public void insert(DeployOperation deo) {
    jdbcSupport.update("delete from T_DEPLOY_OPERATION where fid=70012103");
    jdbcSupport.update(
        "insert into T_DEPLOY_OPERATION values(70012103,'sofa-log-config','日志记录管理',null,'/sofa-log/pages/log/log.jsp',null,0,1,23012102)");
  }

  @Override
  public void delete(DeployOperation deo) {
    jdbcSupport.update("delete from T_DEPLOY_OPERATION where fid=70012103");
  }

  @Override
  public void update(DeployOperation deo) {
    jdbcSupport.update("update T_DEPLOY_OPERATION set FNAME='sofa-log-config' where FID=70012103");
  }

}
